﻿<link href="../Public/css/style.css" rel="stylesheet" type="text/css" />
<!-- 加载头部公共文件 -->
<include file="../Public/head" />
<link rel="stylesheet" type="text/css" href="/Public/Js/DTree/dtree.css">
<script type="text/javascript" src="/Public/Js/DTree/dtree.js"></script>
<form method='post' action="__URL__" >
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="8" height="8"><img src="../Public/images/index1_28.gif" width="8" height="39" /></td>
      <td width="99%" background="../Public/images/index1_40.gif">&nbsp;</td>
      <td width="8" height="8"><img src="../Public/images/index1_43.gif" width="8" height="39" /></td>
    </tr>
    <tr>
      <td background="../Public/images/index1_45.gif"></td>
      <td bgcolor="#FFFFFF" style="height:490px; vertical-align:top;"><table width="100%" border="0" cellspacing="10" cellpadding="0">

          <tr>
            <td>
             	<fieldset >
             		<legend>查询
             		<input name="tpl_type" type="hidden" id="tpl_type" value="{$Think.request.tpl_type}">
             		</legend>
            	<div class="row">
					姓名：
					  <input name="rname" type="text" id="rname" value="{$Think.request.rname}"/>					
            	</div>
				<div  class="row">

					<div class="impBtn hMargin fLeft shadow" >
					  <input type="submit" name="Submit" value="查询"  class="search imgButton"  />
					</div>
					<div class="impBtn hMargin fRight shadow" >
					  <input type="button" name="Submit" value="删除"  class="del imgButton" onclick="del()" />
					</div>
					
					<div class="impBtn hMargin fRight shadow" >
					  <input type="button" name="Submit" value="查看"  class="edit imgButton" onclick="edit()" />
					</div>
				
				</div>
				</fieldset>
            </td>
          </tr>
          <tr>
            <td bordercolor="#DAEEF7"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#BBD3EB" id="tb_list">
                <tr>
                  <td width="3%" height="27" align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">
                  	<input name="cb_selAll" type="checkbox" id="cb_selAll" onclick="selAll('id[]',this);" value="1"/>
                  </td>
                  <td width="6%" height="27" align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold"><label>编号</label></td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">姓名</td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">报名的活动</td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">性别</td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">电话</td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">邮箱</td>
                  <td align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold">报名时间</td>
                </tr>
				<volist name="list" id="vo">
                <tr bgcolor="#FFFFFF">
                  	<td height="26" align="center">
					 	 <input name="id[]" type="checkbox" id="id_{$vo.id}" value="{$vo.id}"/>
					</div>
                  	</td>
                  <td height="26" align="center">
				  	<a href="__URL__/edit/id/{$vo.id}">{$vo.id}</a>
				  </td>
                  <td align="left">	
                  	<a href="__URL__/edit/id/{$vo.id}">{$vo.rname}</a>
                  </td>
                  <td align="left"><a href="/index.php/Artc/show/id/{$vo.actId}" target="_blank">{$vo.actId|toActName}</a></td>
                  <td align="left">{$vo.sex}</td>
                  <td align="left">{$vo.phone}</td>
                  <td align="left">{$vo.email}</td>
                  <td align="left">{$vo.ctime|dateFormat}</td>
                  </tr>
			  </volist>
            </table></td>
          </tr>
          <tr>
            <td class="pager">{$page}</td>
          </tr>
          <tr>
            <td></td>
          </tr>
        </table>
          <h3>&nbsp;</h3>
      </td>
      <td background="../Public/images/index1_47.gif"></td>
    </tr>
    <tr>
      <td width="8" height="8"><img src="../Public/images/index1_91.gif" width="8" height="8" /></td>
      <td background="../Public/images/index1_92.gif"></td>
      <td width="8" height="8"><img src="../Public/images/index1_93.gif" width="8" height="8" /></td>
    </tr>
  </table>

</form>


<!-- js 脚本 -->
<script language="javascript">
<!--
$(document).ready(function(){

	setListStyle("tb_list");

});






function add()
{	
 	location.href = "__URL__/add/tpl_type/{$Think.request.tpl_type}";
}

function edit()
{
	var id = getOneSelect('id[]');
	if( !id )
	{
		alert('请选择一条要修改的记录！');
		return ;
	}

	location.href =  "__URL__/edit/id/"+id;

}

function del()
{
	if( !getOneSelect('id[]') )
	{
		alert('请选择要删除的记录！');
		return ;
	}
	if( window.confirm('确实要删除选中的记录吗？') )
	{
		$('form').attr('action','__URL__/del');
		$('form')[0].submit();
	}
}






//-->
</script>
<!-- 主页面结束 -->
<!-- 加载尾部公共文件 -->
<include file="../Public/foot" />